|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.DSS.WaiterSet
javax.realtime.DSS.PriorityWaiterSet
Collection type for queues of
RealTimeThread
's using priority ordering, and FIFO ordering
for equal priorities.
Field Summary |
Fields inherited from class javax.realtime.DSS.WaiterSet |
waiters |
Constructor Summary | |
PriorityWaiterSet()
Void constructor. |
Method Summary | |
RealtimeThread |
dequeue()
Dequeue the next RealTimeThread
from this WaiterSet . |
void |
enqueue(RealtimeThread thread)
Enqueue the given RealTimeThread . |
RealtimeThread |
first()
Dequeue the highest ranked RealtimeThread in the wait set. |
java.lang.String |
toString()
Construct a printable representation of this PriorityWaiterSet . |
Methods inherited from class javax.realtime.DSS.WaiterSet |
isEmpty, iterator, remove, size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PriorityWaiterSet()
Method Detail |
public RealtimeThread dequeue()
RealTimeThread
from this WaiterSet
.
dequeue
in class WaiterSet
RealTimeThread
dequeued.public void enqueue(RealtimeThread thread)
RealTimeThread
.
Order is by priority, with FIFO order within priorities.
enqueue
in class WaiterSet
thread
- the RealTimeThread
to be
enqueued.public RealtimeThread first()
RealtimeThread
in the wait set. Do not dequeue it.
first
in class WaiterSet
public java.lang.String toString()
PriorityWaiterSet
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |